-- GENERATED SPELL FOR [Harb Foulmountain] --


function spell0_14426(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_14426', 572, 1)
end

function spell1_14426(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(45,pUnit)
pUnit:RegisterEvent('Sorts_14426', 677, 1)
end

function Sorts_14426(pUnit, Event)
local choix_sorts_14426 = math.random(0, 1)
if choix_sorts_14426 == 0 then
pUnit:RegisterEvent('spell0_14426', 1, 1)
end
if choix_sorts_14426 == 1 then
pUnit:RegisterEvent('spell1_14426', 1, 1)
end
end

function mob14426_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14426', math.random(1500, 3000), 1)
end

function mob14426_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14426_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14426_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14426, 1, 'mob14426_Action')
RegisterUnitEvent(14426, 2, 'mob14426_Leave')
RegisterUnitEvent(14426, 3, 'mob14426_Kill')
RegisterUnitEvent(14426, 4, 'mob14426_Die')
